import { Body, Controller, Post } from '@nestjs/common';
import { PaymentService } from './payment.service';

@Controller('payment')
export class PaymentController {
  constructor(private readonly paymentService: PaymentService) {}

  @Post('submit')
  pay(@Body() body: any) {
    return this.paymentService.pay(body.userName);
  }
}
